export default{
	 state:{
		name:'小红',
		age:22,
		address:'北京海淀'

	},

	 mutations:{
		ADDAGE(state){
			return state.age++
		},
		SUBTRACT(state){
			return state.age--;
		}
	},
	actions:{
		addage({commit}){
			commit('ADDAGE')
		},
		subtract({commit}){
			commit('SUBTRACT')
		}
	}
}
